@model ShivamEMR.Model.Domain.ContactsDomain.Territory

@{
    ViewBag.Title = "Details";
}

<h2>Details</h2>

<fieldset>
    <legend>Territory</legend>

    <div class="display-label">Code</div>
    <div class="display-field">@Model.Code</div>

    <div class="display-label">TerritoryName</div>
    <div class="display-field">@Model.TerritoryName</div>

    <div class="display-label">Notes</div>
    <div class="display-field">@Model.Notes</div>

    <div class="display-label">Cities</div>
    <div class="display-field">@(Model.Cities == null ? "None" : Model.Cities.Count.ToString())</div>

    <div class="display-label">Country</div>
    <div class="display-field">@Html.DisplayTextFor(_ => Model.Country).ToString()</div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.ID }) |
    @Html.ActionLink("Back to List", "Index")
</p>


